//
//  NearDriverCell.m
//  easyTaxi
//
//  Created by ellenpage on 12-12-25.
//  Copyright (c) 2012年 ellenpage. All rights reserved.
//

#import "Constant.h"
#import "NearDriverCell.h"
#import <QuartzCore/QuartzCore.h> //导入框架

@implementation NearDriverCell

- (BOOL)isAllNum:(NSString *)string
{
    unichar c;
    for (int i=0; i<string.length; i++) {
        c=[string characterAtIndex:i];
        if (!isdigit(c))
        {
            return NO;
        }
    }
    return YES;
}


- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        [self.backgroundView.layer setCornerRadius:10];
    }
    return self;
}

+ (NearDriverCell *)getInstance
{
    return [[[NSBundle mainBundle] loadNibNamed:@"NearDriverCell" owner:self options:nil] objectAtIndex:0];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
}


@end
